<?php
Doo::loadCore('db/DooModel');

class GlboModuleBase extends DooModel
{

    /**
     * @var int Max length is 11.
     */
    public $mod_id;

    /**
     * @var varchar Max length is 100.
     */
    public $mod_module;

    /**
     * @var varchar Max length is 100.
     */
    public $mod_name;

    public $_table = 'glbo_module';
    public $_primarykey = 'mod_module';
    public $_fields = array('mod_id','mod_module','mod_name');

    public function getVRules() {
        return array(
                'mod_id' => array(
                        array( 'integer' ),
                        array( 'maxlength', 11 ),
                        array( 'optional' ),
                ),

                'mod_module' => array(
                        array( 'maxlength', 100 ),
                        array( 'notnull' ),
                ),

                'mod_name' => array(
                        array( 'maxlength', 100 ),
                        array( 'notnull' ),
                )
            );
    }

}